package com.atguigu.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
public class AlibabaPaymentController {
    @Value("${server.port}")
    private String serverPort;
    @GetMapping("/alibaba/payment/get/{id}")
    public String alibabaPayment(@PathVariable("id") String id){
        return "This is fallback id="+id+",随机码："+ UUID.randomUUID().toString()+",端口:"+serverPort;

    }
}
